class CreateRecords < ActiveRecord::Migration
  def self.up
    create_table :records do |t|
      t.text :description
      t.date :date, :null=>false
      t.integer :length, :null=>false
      t.integer :employee_id, :null=>false
      t.integer :project_id, :null=>false
      t.integer :task_id, :null=>false
      
      t.timestamps
    end
  end

  def self.down
    drop_table :records
  end
end
